/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.pucp.DAO;

import java.util.ArrayList;

/**
 *
 * @author cHreS
 */
public abstract class DAOFactura {
    public static final int ACCESS = 1;
    
    public static DAOFactura instance = null;
     
     public static DAOFactura createFactura(int type) {
        DAOFactura daoFactura = null;
        switch(type){
            case ACCESS: 
               daoFactura = new MSAccessDAOFactura();
                break;
            
        }       
        return daoFactura;
    }
      public static DAOFactura get_instance(int type){
         if(instance == null) 
              instance = createFactura(type);
         return instance;
     
     }

    public abstract DAOContenedor getDAOContenedor();
    public abstract DAOUsuario getDAOUsuario();
    public abstract DAOServicio getDAOServicio();  
    public abstract DAOCliente getDAOCliente();
    public abstract DAODocumento getDAODocumento();
    public abstract DAOFacturacion getDAOFacturacion();
    
}